<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<script type="text/javascript">
			var arr = [1,56,23,6,43,87,3,5,55];
			
			function getMax(arr){
				var one = arr[0];
				for (var i=0;i<arr.length;i++) {
					if(one<arr[i]){
						one = arr[i];
					}
				}
				return one;
			}
			
			var max = getMax(arr);
			document.write(max);
		</script>
	</head>
	<body>

	</body>
</html>
